<%--
  Created by IntelliJ IDEA.
  User: Root404
  Date: 2022/7/7
  Time: 16:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
mvc111
<c:forEach items="${list}" var="xjj">
<h1>${xjj.name}</h1>
</c:forEach>
<a href="${pageContext.request.contextPath}/deleteUserByid?id=13">删除</a>
${isdelete>0?"删除成功":""}
<input type="button" value="点我异步查询" id="bt">
<ul></ul>
<script src="${pageContext.request.contextPath}/statics/js/jquery.js"></script>
<script>
    $("#bt").click(function () {
        $.getJSON("${pageContext.request.contextPath}/find",function (data) {
            $.each(data,function () {
                var li="<li>"+this.name+"</li>";
                $("ul").append(li);
            })
        })
    });

</script>
</body>
</html>
